
package com.zhiwei.codesecurity.common.webservice.checkmarx.portal.v7;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>PivotViewClientType的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * <p>
 * <pre>
 * &lt;simpleType name="PivotViewClientType"&gt;
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
 *     &lt;enumeration value="AllProjectScans"/&gt;
 *     &lt;enumeration value="LastMonthProjectScans"/&gt;
 *     &lt;enumeration value="ProjectsLastScan"/&gt;
 *     &lt;enumeration value="LastWeekOWASPTop10"/&gt;
 *   &lt;/restriction&gt;
 * &lt;/simpleType&gt;
 * </pre>
 * 
 */
@XmlType(name = "PivotViewClientType")
@XmlEnum
public enum PivotViewClientType {

    @XmlEnumValue("AllProjectScans")
    ALL_PROJECT_SCANS("AllProjectScans"),
    @XmlEnumValue("LastMonthProjectScans")
    LAST_MONTH_PROJECT_SCANS("LastMonthProjectScans"),
    @XmlEnumValue("ProjectsLastScan")
    PROJECTS_LAST_SCAN("ProjectsLastScan"),
    @XmlEnumValue("LastWeekOWASPTop10")
    LAST_WEEK_OWASP_TOP_10("LastWeekOWASPTop10");
    private final String value;

    PivotViewClientType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static PivotViewClientType fromValue(String v) {
        for (PivotViewClientType c: PivotViewClientType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
